/**
* @author Ashish Gupta
* CVSSP, University of Surrey
* Copyright (c) 2010 Ashish Gupta
* All rights reserved.
*/
/**
 * 
 */
package data;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * @author Ashish
 *
 */
public class FeatureVector {
	private ArrayList<Integer> featureVector = new ArrayList<Integer>();

	/**
	 * @param featureVector
	 */
	public FeatureVector(int dimensions) {
		this.featureVector = new ArrayList<Integer>(dimensions);
	}

	/**
	 * @param featureVector the featureVector to set
	 */
	public void setFeatureVector(int feature) {
		this.featureVector.add(feature);
	}

	/**
	 * @return the featureVector
	 */
	public ArrayList<Integer> getFeatureVector() {
		return featureVector;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder result = new StringBuilder();
		Iterator<Integer> itr = this.featureVector.iterator();
		while(itr.hasNext()){
			result.append(itr.next());
			result.append(" ");
		}
		return result.toString();
	}

}
